package com.example.demo.service;

import com.example.demo.entity.Userinfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-01
 * Time: 14:22
 */
@Service
public class UserService {
    //将接口注入进来
    @Autowired
    private UserMapper userMapper;
    public Userinfo getUserById(Integer id){
        return userMapper.getUserById(id);
    }
}
